lib/deploy: Do post-ops when removing staged commit
authorColin Walters <walters@verbum.org>
Wed, 2 May 2018 14:33:32 +0000 (14:33 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 2 May 2018 16:22:34 +0000 (16:22 +0000)
commit5337ba51b2e46d5a5bb3d5c627bd724c77d90408
tree1e527c664d392e074a21d6f66bb42713d5aaa155
parent25ba8db987094b141647b2d2e721095b61fac5c1
lib/deploy: Do post-ops when removing staged commit

These are further fixes based on running more of the rpm-ostree
test suite.

When dropping the staged deployment, we do need to do the
"post operations" such as bumping the sysroot mtime, so that
clients know something changed.  We also need to regenerate
the deployment refs.  And of course do a sysroot reload.

Also, add a "base cleanup" after creating a staged deployment
which also regenerates the refs.

Closes: #1570
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c
tests/installed/destructive/staged-deploy.yml